package com.mt.grand.singleton.enums;

import com.mt.grand.singleton.dto.SingletonInstance;

public enum EnumSingleton {
    SINGLE_INSTANCE;

    private SingletonInstance singletonInstance;

    EnumSingleton(){
        singletonInstance = new SingletonInstance("我是枚举单例");
    }

    public SingletonInstance getInstance(){
        return singletonInstance;
    }

}